<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=28697">bug 28697</a>.</p>
<div id="div"><p id="one"></p><p id="two">FAIL, the test did not start.</p></div>
<script src="../../../resources/gc.js"></script>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

var div = document.getElementById("div");
var two = document.getElementById("two");
var range = document.createRange();
range.setStart(two, 0);
range.setEnd(two, 0);

div.innerHTML = "FAIL, the test did not complete.";

gc();

range.startOffset;
div.innerHTML = "PASS, the test did not crash.";
if (window.testRunner) {
    testRunner.notifyDone();
}
</script>
